package customer

import (
	v1 "counter-help/admin/server/api/v1"

	"github.com/gin-gonic/gin"
)

type CusUserRouter struct{}

// InitCusUserRouter 初始化 cusUser表 路由信息
func (s *CusUserRouter) InitCusUserRouter(Router *gin.RouterGroup) {
	cusUserRouter := Router.Group("cusUser")
	cusUserApi := v1.ApiGroupApp.CustomerApiGroup.CusUserApi
	{
		cusUserRouter.POST("register", cusUserApi.Register)             // 新建cusUser表
		cusUserRouter.POST("login", cusUserApi.Login)                   // 删除cusUser表
		cusUserRouter.POST("updateUserInfo", cusUserApi.UpdateUserInfo) // 更新个人信息
		cusUserRouter.GET("getUserInfo", cusUserApi.GetUserInfo)        // 更新个人信息
		cusUserRouter.POST("resetPassword", cusUserApi.ResetPassword)   // 重置密码
	}
}
